<!DOCTYPE html>
<html><head>
    <title>登录</title>
    <meta name="content-type"; charset="UTF-8">
</head><body>
<div class="content" align="center">
    <div class="header"> <h1>超级用户登录页面</h1> </div>
    <div class="middle">
        <form id="loginform" action="superloginaction.php" method="post">
            <table border="0"> <tr>
                    <td>用户名：</td>
                    <td> <input type="text" id="name" name="username"
                                required="required" value="<?php
                        echo isset($_COOKIE[""]) ? $_COOKIE[""] : ""; ?>"> </td> </tr>
                <tr> <td>密   码：</td> <td><input type="password" id="password" name="password"></td>
                </tr> <tr> <td colspan="2"> <input type="checkbox" name="remember"><small>记住我 </td> </tr> <tr> <td
                        colspan="2" align="center" style="color:red;font-size:10px;"> <!--提示信息--> <?php
                        $err = isset($_GET["err"]) ? $_GET["err"] : "";
                        switch ($err) {
                            case 1:
                                echo "用户名或密码错误！";
                                break;

                            case 2:
                                echo "用户名或密码不能为空！";
                                break;
                        } ?> </td> </tr> <tr> <td colspan="2" align="center">
                        <input type="submit" id="login" name="login" value="登录"> <input type="reset" id="reset"
                                                                                        name="reset" value="重置"> </td> </tr>
                <tr>
                    <td colspan="2" align="center"> 普通用户登录<a href="login.php">点这里</a></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"> 超级管理员<a href="superregister.php">注册</a></td>
                </tr>
            </table>
        </form>
    </div>
   </div>
</body>
</html>
